derive heat equation